package com.peak.distribution.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ForwardController {

	@GetMapping(value= {"/", "/index"})
	public String index() {
		return "index";
	}
	
	@GetMapping("/order")
	public String goods() {
		return "order";
	}
	
	@GetMapping("/center")
	public String center() {
		return "center";
	}
	
	@GetMapping("/login")
	public String login() {
		return "login";
	}
	
	@GetMapping("/recommend/{id}")
	public String recommend() {
		return "recommend";
	}
	
	@GetMapping({"/admin", "/agentAudit"})
	public String agentAudit() {
		return "admin/agentAudit";
	}
	
	@GetMapping("/admin/order")
	public String orderAdmin() {
		return "admin/orderAdmin";
	}
	
	@GetMapping("/admin/goods")
	public String goodsAdmin() {
		return "admin/goodsAdmin";
	}
}
